package com.hkt.springcloud.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class ProviderController {

    @Value("${username}")
    private String username;
   @GetMapping("/hello")
    public String hello(@RequestParam String name) {
        return "Hello, " + name + " ,username:"+username + new Date();
    }
}
